import request from '@/utils/request'

export function listMechanismUser(query) {
  return request({
    url: '/mechanismUser/list',
    method: 'get',
    params: query
  })
}

export function createMechanismUser(data) {
  return request({
    url: '/mechanismUser/create',
    method: 'post',
    data
  })
}
export function checkUserName(data) {
  return request({
    url: '/mechanismUser/username',
    method: 'get',
    params: data
  })
}

export function readMechanismUser(data) {
  return request({
    url: '/mechanismUser/read',
    method: 'get',
    data
  })
}

export function updateMechanismUser(data) {
  return request({
    url: '/mechanismUser/update',
    method: 'post',
    data
  })
}

export function deleteMechanismUser(data) {
  return request({
    url: '/mechanismUser/delete',
    method: 'post',
    data
  })
}
